# 定义动物类
class Animal:
    def __init__(self, name, age):
        self.name = name
        self.__age = age

    # 定义吃的方法
    def __eat(self):
        print(f"{self.name}在吃东西")


animal = Animal("动物", "未知")
# animal.eat()
# print(animal.age)

class Dog(Animal):
    pass

dog =Dog("大黄",5)
print(dog.name)
